public class Accountsearch1 {

String searchText;

List<Account> results1;
List<Account> results;

public String getsearchText() {
return searchText;
}
public void setSearchText(String s) {
searchText = s;
}
public List<Account> getResults() {
return  results;
}

public PageReference doSearch() {
String SearchText1=searchText + '%';
List<Account> results = [select name from Account where Rating = :searchtext or name LIKE :SearchText1  or Industry = :searchtext or Account_Priority__c =:searchtext or Account_summary__c =:searchtext ];
return null;
}

public List<Account> getResults1() {

return results1;
}

public PageReference doSubmit() 
{
String SearchText2 =searchText + '%';
List<Account> results1 = [select name,industry,Account_Priority__c,Rating  from Account where Rating = :searchtext or name Like :searchtext2  or Industry = :searchtext or Account_Priority__c =:searchtext or Account_summary__c =:searchtext  ];
return null;

}
}